package com.lhkj.ct.meta.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhkj.ct.meta.admin.model.entity.TblDepartment;
import com.lhkj.ct.meta.admin.model.vo.DepartmentVo;

import java.util.List;

/**
 * <p>
 * 科室表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2023-08-31
 */
public interface SysDeptMapper extends BaseMapper<TblDepartment> {

    /**
     * 部门列表
     */
    List<DepartmentVo> listDepartments(TblDepartment department);

    /**
     * 查询部门是否存在用户
     *
     * @param deptId 部门ID
     * @return 结果
     */
    int checkDeptExistUser(String deptId);
}
